using System;
using JoyfulHomeJourney.BackEnd.Infrastructure.EFCore;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Requests.Objects;
namespace JoyfulHomeJourney.BackEnd.Server.Instances.Extends.Requests
{
	public static class EntityPointsProductsUpdateExtend
{
		public static PointsProducts ToUpdateEntity(this RequestPointsProductsDto dto)
		{
			return new PointsProducts
			{
				PpDescription = dto.description,
				PpId = dto.id,
				PpName = dto.name,
				PpPointsCost = dto.pointsCost,
				PpStock = dto.stock,
			};
		}
	}
}
